package com.blb.edusearchservice.feign;

import com.blb.common.entity.Course;
import com.blb.common.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("edu-course-service")
public interface CourseFeignClient {

    /**
     * 查询所有课程
     * @return
     */
    @GetMapping("/courses")
    ResponseResult<List<Course>> getAllCourses();
}
